#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<math.h>
#include<string.h>
struct MyStruct
{
    int a;
    char b;
    double c;
};
#define Offsetof(type,name)  (size_t)&(((type*)0)->name)
int main()
{
    printf("%d\n", Offsetof(struct MyStruct, a));
    printf("%d\n", Offsetof(struct MyStruct, b));
    printf("%d\n", Offsetof(struct MyStruct, c));
    return 0;
}